package org.jjche.file.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.jjche.common.exception.enums.IBaseErrorCodeEnum;

/**
 * 存储错误码枚举
 */
@Getter
@AllArgsConstructor
public enum FileErrorCodeEnum implements IBaseErrorCodeEnum {
    // ==========  通用模块 1-004-000-000 ==========
    SAVE_ERROR(1004000000, "保存失败"),
    DELETE_ERROR(1004000001, "删除失败"),
    UPDATE_ERROR(1004000002, "修改失败"),
    RECORD_NOT_FOUND(1004000003, "记录不存在"),
    FILE_EXPORT_ERROR(1004000004, "文件导出失败"),
    ID_ALREADY_ERROR(1004000005, "新增不允许出现id字段"),

    // ========== 文件模块 1-004-001-000 ==========
    FILE_PIC_ERROR(1004001000, "请选择图片"),
    FILE_UPLOAD_ERROR(1004001001, "上传失败"),
    ;
    private final int code;
    private final String msg;
}
